| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | const path = require('path'); |
||
| 18 | return new Promise((resolve) => { |
||
| 19 | console.log(`copying ${file} to ${path.resolve(__dirname, '../lib', filePath)}`) |
||
|
|
|||
| 20 | return fs.copy( |
||
| 21 | file, |
||
| 22 | path.resolve( |
||
| 23 | __dirname, |
||
| 24 | '../lib', |
||
| 25 | filePath, |
||
| 26 | path.basename(file) |
||
| 27 | ), |
||
| 28 | (error, data) => { |
||
| 29 | if (error) throw new Error (`error copying file ${file}`, error); |
||
| 30 | return resolve(data); |
||
| 31 | } |
||
| 32 | ); |
||
| 33 | }); |
||
| 34 | } |
||
| 82 |